#ifndef BULLET_H
#define BULLET_H

#include "gameobject.h"

class Bullet : public GameObject
{

public:

    explicit Bullet(QObject *parent = nullptr);

    int mBulletType;

    //移动函数
    void BulletMove(QPoint B_dir);
    int B_speed;//子弹速度
    int B_zy;//子弹的左右

    QMediaPlayer mbulletmedia1;
    QMediaPlayer mbulletmedia2;
    //播放音效
    void PlaySound();
    void Init(QPoint B_pos,QPixmap B_pix,int zy);
    void PlayBoomSound();

signals:

};

#endif // BULLET_H
